<?php $products = $this->requestAction('/elements/get_products/10/0'); ?>
<?php foreach($products as $key => $product): ?>
<?php if($key % 2 == 0): ?>
<ul>
<?php endif; ?>
	<li>
        <a href="#special<?php echo $product['Product']['id'] ?>" class="fancybox" title="<?php echo $product['Product']['title']?>">
        <?php
        if($product['Product']['image'] != '')
            echo $html->image('/files/products/'. $html->getThumbnailName($product['Product']['image']),array('width' => 75, 'height' => 70));
        else
            echo $html->image('/files/products/no-picture.jpg',array('width' => 75, 'height' => 70));
        ?> 
     						
        </a>
         <div class="product_fancybox" style="display: none;" id="special<?php echo $product['Product']['id'] ?>">
                     <h1 class="title"><?php echo $product['Product']['title']; ?></h1>                         
            <?php
		if($product['Product']['image'] != '')
                    echo $html->image('/files/products/'. $product['Product']['image']);
                else
                    echo $html->image('/files/products/no-picture.jpg');
                ?>   
					<div style="clear:left"></div>	
					<?php echo $product['Product']['description']; ?>
					<br />
					<span class="price"><strong><?php __("Giá: "); ?><?php echo $product['Product']['price']; ?></strong></span>
					<a class="order" href="<?php echo $html->url(array('plugin' => 'products','controller' => 'products','action' => 'add_cart',$product['Product']['alias']))  ;?>"><?php echo __('Mua hàng');?></a>
        </div>
	</li>
<?php if($key % 2 == 1): ?>
</ul>
<?php endif; ?>
<?php if($key % 2 == 0 && $key == count($products) - 1): ?>
</ul>
<?php endif; ?>
<?php endforeach; ?>